<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ page import="mfuny.ggongal.admin.manager.Manager" %>
<%@ page trimDirectiveWhitespaces="true" %>
<%
Manager manager = new Manager();
String tag = request.getParameter("tag");

//서버 활성/비활성.
if(tag.equals("setServer")) {
	int serverstatus = Integer.parseInt(request.getParameter("serverstatus"));
	int result = manager.setServerStatus(serverstatus);
	out.print(result);
}

//msg 변경처리.
else if(tag.equals("updateMsg")) {
	int msgnum = Integer.parseInt(request.getParameter("msgnum"));
	String msg = request.getParameter("msg");
	int result = manager.updateMsg(msgnum, msg);
	out.print(result);
}
%>